"""
ForgeFed plugin for Pagure.
Copyright (C) 2020-2021 zPlus <zplus@peers.community>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, see <https://www.gnu.org/licenses/>.

SPDX-FileCopyrightText:  2020-2021 zPlus <zplus@peers.community>
SPDX-License-Identifier: GPL-2.0-only
"""

# How many items to show for collections, eg. as:followers and as:inbox. If a
# collection contains more than COLLECTION_SIZE it will be paginated.
COLLECTION_SIZE = 100

# Actors use RSA keys to sign HTTP POST requests. These keys are automatically
# created for actors.
HTTP_SIGNATURE_KEY_BITS = 2048

# When an Activity is sent to a remote object, that object can be an Actor or a
# Collection containing other objects. Because collections can contain other
# collections, we could get stuck into recursion, or go "too deep" with the list
# of receivers (ie. followers of followers of followers...). This option sets
# the maximum number of indirections that we follow when sending an Activity.
# https://www.w3.org/TR/activitypub/#delivery
#
# Examples:
#     0 = Send only to actual actors with an immediate INBOX, do not expand any
#         Collection
#     1 = Send to actors and immediate Collections only (eg. as:followers). If
#         followers contains another Collection, the latter won't be searched
#     2 = Expand collections inside other collections
DELIVERY_DEPTH = 1

# The plugin makes use of the Python logging module. This variable sets the
# level of logging that should be produced. A log level is essentially a
# natural number. The logs with a value greater than or equal to LOG_LEVEL will
# be printed, all the others will be ignored.
# https://docs.python.org/3/library/logging.html#levels
import logging
LOG_LEVEL=logging.DEBUG

# This is required during plugin initialization to find the pagure templates
# folder.
# It is also required for the "tasks" package. When the celery task is started
# from the command line, it does not know where the pagure folder is because
# it's a standalone process.
PAGURE_PATH='/home/git/pagure'
